package oop.day06.homework;

public class Student {
    String studentId;
    String name;
    int score;

    Student(){

    }
    Student(String studentId, String name){
        this.studentId = studentId;
        this.name = name;
    }
    public void setScore(int score){
        if(score<= 100&&score>=0){
            this.score = score;
        }
    }
    public int getScore(){
        return score;
    }
    public void printinfo(){
        System.out.println("学号：["+studentId+"]，姓名：["+name+"]，成绩：["+score+"]");
    }


}
